﻿<%@ Page Language="C#" %>
<script runat="server">
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!string.IsNullOrEmpty(Request["ResID"]))
        {
            int tmp = 0;
            int.TryParse(Request["ResID"],out tmp);
            BLF.WWW_WWW.Resource.Resources.UpdateResourceHits(tmp);
        }
        if (!string.IsNullOrEmpty(Request["ReturnUrl"]))
        {
            string url = Request.Url.AbsoluteUri;
            int pos = url.IndexOf("ReturnUrl=");
            Response.Redirect(url.Substring(pos + 10));
        }
        Response.End();
    }
</script>
